/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.com.siglo21.ppo.view;

public class Principal extends javax.swing.JFrame {

    /**
     * Creates new form Principal
     */
    public Principal() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu2 = new javax.swing.JMenu();
        jMenuItemGestionarSocio = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jMenuItemGestionarPersonal = new javax.swing.JMenuItem();
        jMenuAutor = new javax.swing.JMenu();
        jMenuItemGestionar = new javax.swing.JMenuItem();
        jMenuLibro = new javax.swing.JMenu();
        jMenuItemGestionarLibro = new javax.swing.JMenuItem();
        jMenuEjemplar = new javax.swing.JMenu();
        jMenuItemGestionarEjemplar = new javax.swing.JMenuItem();
        jMenuPrestamos = new javax.swing.JMenu();
        jMenuItemGestionarPrestamo = new javax.swing.JMenuItem();
        jMenuConfiguracion = new javax.swing.JMenu();
        jMenuItemGenero = new javax.swing.JMenuItem();
        jMenuItemEstado = new javax.swing.JMenuItem();
        jMenuAyuda = new javax.swing.JMenu();
        jMenuItem2 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jMenu2.setText("Socios");

        jMenuItemGestionarSocio.setText("Gestionar");
        jMenuItemGestionarSocio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemGestionarSocioActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItemGestionarSocio);

        jMenuBar1.add(jMenu2);

        jMenu3.setText("Personal");

        jMenuItemGestionarPersonal.setText("Gestionar");
        jMenuItemGestionarPersonal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemGestionarPersonalActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItemGestionarPersonal);

        jMenuBar1.add(jMenu3);

        jMenuAutor.setText("Autor");

        jMenuItemGestionar.setText("Gestionar");
        jMenuItemGestionar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemGestionarActionPerformed(evt);
            }
        });
        jMenuAutor.add(jMenuItemGestionar);

        jMenuBar1.add(jMenuAutor);

        jMenuLibro.setText("Libros");

        jMenuItemGestionarLibro.setText("Gestionar");
        jMenuItemGestionarLibro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemGestionarLibroActionPerformed(evt);
            }
        });
        jMenuLibro.add(jMenuItemGestionarLibro);

        jMenuBar1.add(jMenuLibro);

        jMenuEjemplar.setText("Ejemplar");

        jMenuItemGestionarEjemplar.setText("Gestionar");
        jMenuItemGestionarEjemplar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemGestionarEjemplarActionPerformed(evt);
            }
        });
        jMenuEjemplar.add(jMenuItemGestionarEjemplar);

        jMenuBar1.add(jMenuEjemplar);

        jMenuPrestamos.setText("Prestamo");

        jMenuItemGestionarPrestamo.setText("Gestionar");
        jMenuItemGestionarPrestamo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemGestionarPrestamoActionPerformed(evt);
            }
        });
        jMenuPrestamos.add(jMenuItemGestionarPrestamo);

        jMenuBar1.add(jMenuPrestamos);

        jMenuConfiguracion.setText("Configuracion");

        jMenuItemGenero.setText("Generos");
        jMenuItemGenero.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemGeneroActionPerformed(evt);
            }
        });
        jMenuConfiguracion.add(jMenuItemGenero);

        jMenuItemEstado.setText("Estados");
        jMenuItemEstado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemEstadoActionPerformed(evt);
            }
        });
        jMenuConfiguracion.add(jMenuItemEstado);

        jMenuBar1.add(jMenuConfiguracion);

        jMenuAyuda.setText("Ayuda");

        jMenuItem2.setText("Acerca de...");
        jMenuAyuda.add(jMenuItem2);

        jMenuBar1.add(jMenuAyuda);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 557, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 281, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenuItemGestionarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGestionarActionPerformed
            new AutorView().setVisible(true);
    }//GEN-LAST:event_jMenuItemGestionarActionPerformed

    private void jMenuItemGeneroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGeneroActionPerformed
        new GeneroView().setVisible(true);
    }//GEN-LAST:event_jMenuItemGeneroActionPerformed

    private void jMenuItemEstadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemEstadoActionPerformed
        new EstadoView().setVisible(true);
    }//GEN-LAST:event_jMenuItemEstadoActionPerformed

    private void jMenuItemGestionarSocioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGestionarSocioActionPerformed
       new SocioView().setVisible(true);
    }//GEN-LAST:event_jMenuItemGestionarSocioActionPerformed

    private void jMenuItemGestionarPersonalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGestionarPersonalActionPerformed
        new PersonalView().setVisible(true);
    }//GEN-LAST:event_jMenuItemGestionarPersonalActionPerformed

    private void jMenuItemGestionarLibroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGestionarLibroActionPerformed
        new LibroView().setVisible(true);
    }//GEN-LAST:event_jMenuItemGestionarLibroActionPerformed

    private void jMenuItemGestionarEjemplarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGestionarEjemplarActionPerformed
        new EjemplarView().setVisible(true);
    }//GEN-LAST:event_jMenuItemGestionarEjemplarActionPerformed

    private void jMenuItemGestionarPrestamoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGestionarPrestamoActionPerformed
        new PrestamoView().setVisible(true);
    }//GEN-LAST:event_jMenuItemGestionarPrestamoActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Principal().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenuAutor;
    private javax.swing.JMenu jMenuAyuda;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenu jMenuConfiguracion;
    private javax.swing.JMenu jMenuEjemplar;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItemEstado;
    private javax.swing.JMenuItem jMenuItemGenero;
    private javax.swing.JMenuItem jMenuItemGestionar;
    private javax.swing.JMenuItem jMenuItemGestionarEjemplar;
    private javax.swing.JMenuItem jMenuItemGestionarLibro;
    private javax.swing.JMenuItem jMenuItemGestionarPersonal;
    private javax.swing.JMenuItem jMenuItemGestionarPrestamo;
    private javax.swing.JMenuItem jMenuItemGestionarSocio;
    private javax.swing.JMenu jMenuLibro;
    private javax.swing.JMenu jMenuPrestamos;
    // End of variables declaration//GEN-END:variables
}
